<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    // 用于找出第一个符合条件的数组成员的位置，如果没有找到返回 -1
    let ary = [10, 20, 30];
    let index = ary.findIndex(item => item >15);
    console.log(index);  // 1
    </script>
</body>
</html>